﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OpenESSOConfigurator.PresentationLayer.PresentationModels
{
    public class LeftSpinePresentationModel:PresentationModel
    {
        private static LeftSpinePresentationModel instance;
        private ToolStripButton _selectedButton;
        private LeftSpinePresentationModel()
        {
            eventBroker = new OpenESSOConfigurator.PresentationLayer.EventBroker.EventBroker();
            views = new List<IView>();
        }

        public static LeftSpinePresentationModel Instance
        {
            get 
            {
                if (instance == null) instance = new LeftSpinePresentationModel();
                return instance;
            }
        }
        public ToolStripButton SelectedButton
        {
            set
            {
                _selectedButton = value;
                this.FireEvent("topic://LeftSpinePresentationModel/SelectedButtonChanged", _selectedButton, null);
            }
            get { return _selectedButton; }
        }
    }
}
